import useCommonStore from "@/store/common"

export function getMenuButtonRectVal() {
	const commonStore = useCommonStore()
	let systemInfo = uni.getWindowInfo()
	let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
	let menuWidthVal = systemInfo.screenWidth - menuButtonInfo.left
	let titleHeightVal = menuButtonInfo.height + (menuButtonInfo.top - commonStore.statusBarHeight) * 2
	return { menuWidthVal, titleHeightVal }
}
